import request from "@/utils/request";

// 查询首页视频
export function videoList(query) {
  return request({
    url: "applet/video/list",
    method: "get",
    params: query,
  });
}
// 修改视频
export function editVideo(query) {
  return request({
    url: "applet/video",
    method: "put",
    data: query,
  });
}
// 查询视频
export function getVideo(id) {
  return request({
    url: "applet/video/" + id,
    method: "get",
  });
}
// 新增视频
export function addVideo(data) {
  return request({
    url: "applet/video/",
    method: "post",
    data: data,
  });
}
// 删除视频
export function deleteVideo(id) {
  return request({
    url: "applet/video/" + id,
    method: "delete",
  });
}
